<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="../js/style.css" />
<script language="javascript" src="../js/PopupCalendar.js" ></script>
<title>湖北包装网会员管理系统</title></head>
<body>
<script type="text/javascript" src="../js/jquery.min.js"></script> 
<script type="text/javascript" language="javascript"> 
$(function(){ 
//Bind the change event 
$("#company_type").unbind("change", eDropLangChange).bind("change", eDropLangChange); 
$("#company_type_info").unbind("change", eDropFrameChange).bind("change", eDropFrameChange); 
}); 

//The change event of language dropdown-list 
var eDropLangChange = function(){ 
//The selected value of the language dropdown-list. 
var selectedValue = $(this).val(); 

//show all options. 
$("#company_type_info").children("span").each(function(){ 
$(this).children().clone().replaceAll($(this)); //use the content of the <span> replace the <span> 
}); 

//Filter the data through selected value of language dropdown-list except <Please Select>. 
//If the option is <Please Select>, it only needs to show all and hide nothing. 
if(parseInt(selectedValue) != 0){ 
//hide the option whose parentid is not equal with selected value of language dropdown-list. 
//The <Please Select> option should not be hidden. 
$("#company_type_info").children("option[parentid!='" + selectedValue + "'][value!='0']").each(function(){ 
$(this).wrap("<span style='display:none'></span>"); //add a <span> around the <option> and hide the <span>. 
}); 
} 
}; 

//The change event of frame dropdown-list. 
var eDropFrameChange = function(){ 
//Find the selected option of frame dropdown-list. set the value of language dropdown-list by selected parentid. 
$("#company_type").val($(this).children("option:selected").attr("parentid")); 
}; 
</script> 
<script >

var oCalendarEn=new PopupCalendar("oCalendarEn");	//初始化控件时,请给出实例名称如:oCalendarEn
oCalendarEn.Init();


var oCalendarChs=new PopupCalendar("oCalendarChs");	//初始化控件时,请给出实例名称:oCalendarChs
oCalendarChs.weekDaySting=new Array("日","一","二","三","四","五","六");
oCalendarChs.monthSting=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
oCalendarChs.oBtnTodayTitle="今天";
oCalendarChs.oBtnCancelTitle="取消";
oCalendarChs.startYear=1990;
oCalendarChs.endYear=2019;
oCalendarChs.Init();
</script>
<script type="text/javascript">
function searchChange(s){
	if(s==0){
		window.location.href="../user/searchAllUser.action";
	}else if(s==1){
		window.location.href="../user/searchPerUser.action";
	}else if(s==2){
		window.location.href="../user/searchComUser.action";
	}else{
	
	}
}


function submit(){
		var user_name = document.getElementById("user_name").value;
		var com_name = document.getElementById("com_name").value;
		var com_type = document.getElementById("com_type").value;
		var com_type_info = document.getElementById("com_type_info").value;
		var economic_nature = document.getElementById("economic_nature").value;
		var maturity_datestart = document.getElementById("maturity_datestart").value;
		var maturity_dateend = document.getElementById("maturity_dateend").value;
		var joindatestart = document.getElementById("joindatestart").value;
		var joindateend = document.getElementById("joindateend").value;
		window.location.href="../user/searchComUser.action?user_name="+user_name+"&com_name="+com_name+"&economic_nature="+economic_nature+"&com_type="+com_type+"&joindatestart="+joindatestart+"&joindateend="+joindateend+"&maturity_datestart="+maturity_datestart+"&maturity_dateend="+maturity_dateend+"&com_type_info="+com_type_info;
}
function del_confirm(id)
  {
        var user_name = document.getElementById("user_name").value;
		var com_name = document.getElementById("com_name").value;
		var com_type = document.getElementById("com_type").value;
		var com_type_info = document.getElementById("com_type_info").value;
		var economic_nature = document.getElementById("economic_nature").value;
		var maturity_datestart = document.getElementById("maturity_datestart").value;
		var maturity_dateend = document.getElementById("maturity_dateend").value;
		var joindatestart = document.getElementById("joindatestart").value;
		var joindateend = document.getElementById("joindateend").value;
   if(confirm("是否删除?"))
    {
       window.location.href="../user/comUserDel.action?user_id="+id+"&user_name="+user_name+"&com_name="+com_name+"&economic_nature="+economic_nature+"&com_type="+com_type+"&joindatestart="+joindatestart+"&joindateend="+joindateend+"&maturity_datestart="+maturity_datestart+"&maturity_dateend="+maturity_dateend+"&com_type_info="+com_type_info;
    }

  }
</script>

<jsp:include page="adminTitle.jsp" flush="true"></jsp:include>
<div id="mainpage">
  <div class="bodytitle">
    <div class="bodytitleleft"></div>
    <div class="bodytitletxt">普查信息查看</div>
  </div>
  <div>
  
  	
  	
  </div>
  <table cellpadding="0" cellspacing="0" border="0" id="table" class="sortable">
		<thead>
			<tr>
				<th class="nosort"><h3>单位名称</h3></th>
				<th><h3>专业类别</h3></th>
				<th><h3>专业类别二级</h3></th>
				<th><h3>经济性质</h3></th>
				<th class="nosort"><h3>详细信息</h3></th>
			</tr>
		</thead>
		<tbody>
		<s:iterator value="indagateList" id="culist">
			<tr>
				<td><font size="2px"><s:property value="#culist.com_name"/></font></td>
				<td><font size="2px">
				<s:iterator value="LinkageList" id="llist">
				<s:if test="#culist.com_type==#llist.type_id"><s:property value="#llist.type_name"/></s:if>
				</s:iterator>
				</font></td>
				<td><font size="2px">
				<s:iterator value="LinkageinfoList" id="lflist">
				<s:if test="#culist.com_type_info==#lflist.info_id"><s:property value="#lflist.info_name"/></s:if>
				</s:iterator>
				</font></td>
				<td><font size="2px">
				<s:if test="#culist.economic_nature==1">国有</s:if>
				<s:if test="#culist.economic_nature==2">集体</s:if>
				<s:if test="#culist.economic_nature==3">股份制</s:if>
				<s:if test="#culist.economic_nature==4">民营</s:if>
				<s:if test="#culist.economic_nature==5">中外合资</s:if>
				<s:if test="#culist.economic_nature==6">其他</s:if>
				</font></td>
				<td><img src="img/ico-edit.gif" onclick='location.href="../user/comUserView.action?user_id=<s:property value="#culist.user_id"/>"' style="cursor: hand"/></td>
			</tr>
		</s:iterator>
		</tbody>
  </table>
	<div id="controls">
		<div id="perpage">
			<select onchange="sorter.size(this.value)">
			    <option value="5">5</option>
				<option value="10" selected="selected">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span><font size="2px">输入分页条数</font></span>
		</div>
		<div id="navigation">
			<img src="../js/images/first.gif" width="16" height="16" alt="First Page" onclick="sorter.move(-1,true)" />
			<img src="../js/images/previous.gif" width="16" height="16" alt="First Page" onclick="sorter.move(-1)" />
			<img src="../js/images/next.gif" width="16" height="16" alt="First Page" onclick="sorter.move(1)" />
			<img src="../js/images/last.gif" width="16" height="16" alt="Last Page" onclick="sorter.move(1,true)" />
		</div>
		<div id="text"><font size="2px">显示页面： <span id="currentpage"></span> of <span id="pagelimit"></span> </font></div>
	</div>
	<script type="text/javascript" src="../js/script.js"></script>
	<script type="text/javascript">
    var sorter = new TINY.table.sorter("sorter");
	sorter.head = "head";
	sorter.asc = "asc";
	sorter.desc = "desc";
	sorter.even = "evenrow";
	sorter.odd = "oddrow";
	sorter.evensel = "evenselected";
	sorter.oddsel = "oddselected";
	sorter.paginate = true;
	sorter.currentid = "currentpage";
	sorter.limitid = "pagelimit";
	sorter.init("table");<!-- sorter.init("table",0);参数表示选中第几列  -->
	sorter.size(10);
  </script>
</div>
</body>
</html>